package com.cmj.service.impl;

import com.cmj.dao.BookMapper;
import com.cmj.entity.Book;
import com.cmj.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookServiceImpl implements BookService {

    @Autowired
    BookMapper bookMapper;

    @Override
    public List<Book> selectAll() {
        return bookMapper.selectAll();
    }

    @Override
    public int add(Book book) {
        return bookMapper.add(book);
    }
}
